/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo04_两个对象内存图 {
    public static void main(String[] args) {
        Phone phone = new Phone();
        phone.brand = "小米";
        phone.price = 8999;
        phone.color = "尊贵金";
        phone.sendMessage();
        System.out.println("手机的品牌: " + phone.brand);
        System.out.println("手机的价格: " + phone.price);
        System.out.println("手机的颜色: " + phone.color);
        System.out.println("-------------");
        Phone phone2 = new Phone();
        phone2.brand = "vivo";
        phone2.price = 1899;
        phone2.color = "炫酷黑";
        phone2.sendMessage();
        System.out.println("手机的品牌: " + phone2.brand);
        System.out.println("手机的价格: " + phone2.price);
        System.out.println("手机的颜色: " + phone2.color);
    }
}
